package com.netjava.service.impl;

import com.netjava.dao.IRechargeRecordDAO;
import com.netjava.pojo.RechargeRecord;
import com.netjava.service.IRechargeRecordService;

/**
 * 点卡的充值记录的业务的实施类。
 * @author nana
 *
 */
public class RechargeRecordService implements IRechargeRecordService{
	private IRechargeRecordDAO rechargeRecordDao;
	public void addRechargeRec(RechargeRecord recharGerecord) {
		rechargeRecordDao.save(recharGerecord);
	}

	public void delete(RechargeRecord recharGerecord) {
		rechargeRecordDao.delete(recharGerecord);
	}

	public RechargeRecord getReReById(Integer id) {
		return rechargeRecordDao.findById(id);
	}

	public IRechargeRecordDAO getRechargeRecordDao() {
		return rechargeRecordDao;
	}

	public void setRechargeRecordDao(IRechargeRecordDAO rechargeRecordDao) {
		this.rechargeRecordDao = rechargeRecordDao;
	}

}
